package com.Fate.common;

import java.util.List;

public class PageInfo<T> {
    private Integer page;//页码
    private Integer limit;//每页数据条数
    private List<T> data;//具体数据
    private Integer count;//总数据条数
    public PageInfo(){}

    public Integer getPage() {
        return page;
    }

    public PageInfo<T> setPage(Integer page) {
        this.page = page;
        return this;
    }

    public Integer getLimit() {
        return limit;
    }

    public PageInfo<T> setLimit(Integer limit) {
        this.limit = limit;
        return this;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;

    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;

    }

    public PageInfo(Integer page, Integer limit, List<T> data, Integer count) {
        this.page = page;
        this.limit = limit;
        this.data = data;
        this.count = count;
    }
}
